package Utils.basicDataTypes;

import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;

import java.io.IOException;

/**
 * ActionProc委托
 *
 * @author d11yu
 */
public interface ActionProc {
    /**
     * 执行委托的命令，爬取逻辑的代码主要写在这里。
     *
     * @param httpClient CloseableHttpClient对象
     * @param response   CloseableHttpResponse对象
     * @param request    HttpGet对象
     */
    void invoke(CloseableHttpClient httpClient, CloseableHttpResponse response, HttpGet request) throws IOException;
}
